home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 015 / hpfilter.arc / HPFILTER.DOC < prev   
Text File  |  1987-01-18  |  4KB  |  98 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.                     HPFilter
  9.                                    Rip Toren
  10.                                      POB 674
  11.                                Columbia MD 21045
  12.                                  12 Jan 1987
  13.  
  14.      So... you just got the fancy HP LaserJet+ printer that will allow you
  15.      to publish your own version of whatever. You have just spent about 3
  16.      hours reading the operator's manual, as well as the technical
  17.      reference. And you still aren't sure what this hummer will do.
  18.  
  19.  
  20.      In short:
  21.      1)   It will not print out the extended IBM PC character set. You get a
  22.       bunch of European characters that just don't convey the same
  23.       impact.
  24.      2)   You can't seem to get anything that resembles BOLD printing.
  25.      3)   And that compressed printing will only work in portrait (up and
  26.       down) and not in landscape (side to side) where it would be really
  27.       useful.
  28.  
  29.      HPFilter can solve only the first two of those problems for you.
  30.      The concept is that HPFilter installs itself in the interrupt 17 chain,
  31.      so that it has a chance to look at each character as it is sent to the
  32.      printer.
  33.  
  34.      If a code between 179 and 223 (these are the line drawing and block
  35.      characters) is seen, a substitute string is sent in its place. This
  36.      string is a graphic definition to the printer to create the desired
  37.      character as a set of individual line segments.
  38.  
  39.      In the case of BOLDing, the character is printed a second time, with
  40.      the registration offset by 1/300th of an inch in both the vertical and
  41.      horizontal directions. This may be considered FATtening, rather than
  42.      bolding, but it's better than nothing.
  43.  
  44.      <<INSTALLATION>>
  45.  
  46.      Simply execute HPFilter from the command line. It will take up a bit
  47.      less than 4k bytes. If you want to disable HPFilter, simply run the
  48.      program again. Each invocation flips HPFilter on and off.
  49.  
  50.      To activate the BOLDing, you will have to insert a code into your file
  51.      to turn it on and then off. To turn BOLDing on, send the codes
  52.      <ESC>+'G'. That is in hexadecimal <1B 47> or <27 71> in decimal. To
  53.      turn the BOLDING off, use <ESC>+'H' or <ESC>+'E'. The later code is a
  54.      reset to the LaserJet.
  55.  
  56.      If by chance you leave HPFilter active, while printing to a printer
  57.      other than the HP LaserJet, expect a bunch of gibberish for those
  58.      graphic characters.
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.      <<SOURCE>>
  67.      The source has been included so that you may add any additional
  68.      characters that you might want. In the definitions for the substitution
  69.      strings, you will see a number of periods (.). These are ingnored, and
  70.      not passed to the printer. They just make things easier to line up and
  71.      see what is going on in the commands. You may obviously delete them to
  72.      compact the size a bit. To rebuild the application,
  73.  
  74.      >masm hpfilter,hpfilter;
  75.      >link hpfilter,hpfilter;
  76.                   (you will get a STACK error - ignore)
  77.      >exe2bin hpfilter hpfilter.com
  78.  
  79.      The lines that are drawn are 3/300th of an inch. The are laid out on a
  80.      grid of 30x50 pels. This is consistant with the examples in the HP
  81.      Tecnical Reference manual.
  82.  
  83.      <<DISCLAIMER>>
  84.      This is the first assembly program that I have ever written in the
  85.      INTEL 80x8x family. It is oversized, and can be tightened up with
  86.      subroutine calls. But figuring out where the assembler and linker would
  87.      place things was too confusing.  The basic structure was inspired by an
  88.      article and program by Jeff Garbers in the September 1984 issue of PC
  89.      Tech Journal. He said his program was a good basis for further work,
  90.      and he was correct. Thanx.
  91.  
  92.      If you have any comments, or useful HP LaserJet utilities, I would love
  93.      to hear from you at the above address, or leave a message on Vince
  94.      Castelli's CHESAPEAKE BBS (301) 267 4930 addressed to RIP TOREN.
  95.  
  96.  
  97.  
  98.